import request from '@/utils/request'

// 查询记录列表
export function listNjtJobPlatform(query) {
  return request({
    url: '/nongjt/jobPlatform/list',
    method: 'get',
    params: query
  })
}
export function updateNjtJobPlatform(data) {
  return request({
    url: '/nongjt/jobPlatform',
    method: 'put',
    data: data
  })
}
export function deleteNjtJobPlatform(id) {
  return request({
    url: `/nongjt/jobPlatform/${id}`,
    method: 'delete',
  })
}
export function batchDeleteNjtJobPlatform(ids) {
  return request({
    url: '/nongjt/jobPlatform/batchDelete', // 后端接口路径（需与后端一致）
    method: 'delete',
    data: ids // DELETE 请求用 data 传参（ID 数组）
  });
}
export function addNjtJobPlatform(data) {
  return request({
    url: '/nongjt/jobPlatform/add',
    method: 'put',
    data: data
  })
}
